package com.xbongbong.pro.message.tool;/*/*/

import com.xbongbong.message.domain.entity.PushEntity;

import java.util.Comparator;

/**
 * 按消息的推送时间升序排序
 *  @author 魏荣杰
 *  @date 2019/1/6 1:14
 */
public class PushTimeAscComparator implements Comparator<PushEntity> {

    @Override
    public int compare(PushEntity push1, PushEntity push2) {
        return push1.getPushTime().compareTo(push2.getPushTime());
    }
}